POV-Ray : Newsgroups : povray.general : I dont believe I did that! : Re: I dont believe I did that! Server Time
9 Aug 2024 17:15:15 EDT (-0400)
  Re: I dont believe I did that!  
From: Chris Huff
Date: 9 Aug 2000 13:11:37
Message: <chrishuff-E4E0EF.12124009082000@news.povray.org>
In article <3990DBEA.BE182729@pacbell.net>, lin### [at] povrayorg 
wrote:

> It looks like something the "average" POV-Ray user would never be
> able to come up with on his/her own.

I just don't understand why not, pattern functions seemed the natural 
choice, and the function is quite simple. Maybe it would be more easily 
understood this way:


//clamps the value x to the range [y,z]
#declare clamp = function {max(y,min(z,x))}

//old style bozo, complete with plateaus
#declare OldBozo =
function {clamp(noise3d(x,y,z)/0.48985582 - 1.05242 + 0.5, 0, 1)}

Or are you talking about the "noise3d(x,y,z)/0.48985582 - 1.05242 + 0.5" 
part? That was just the mapping copied from Nathans post.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.